//
//  HomeStatisticsTaskSourceVC.m
//  LogisticsSupplier
//
//  Created by 吕晶 on 2021/7/28.
//  Copyright © 2021 吕晶. All rights reserved.
//

#import "HomeStatisticsTaskSourceVC.h"
#import <WebKit/WebKit.h>

@interface HomeStatisticsTaskSourceVC ()

@property (nonatomic, strong) WKWebView *webView;

@end

@implementation HomeStatisticsTaskSourceVC

-(WKWebView *)webView {
    if (!_webView) {
        _webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, ScreenW, ScreenH - NaviHeight)];
    }
    return _webView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"我的任务来源";
    [self.view addSubview:self.webView];
    NSString *url = [NSString stringWithFormat:@"%@/look/taskform.html?token=%@",H5BaseUrl,[User getUserToken]];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:20]];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
